package com.cmy.mvvm.test.api

import com.cmy.framework_network.apiresponse.NetworkResponse
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * @name:
 *  Api
 * @package:
 *  com.cmy.mvvm.test
 * @date:
 *  2023/2/1708:50
 * @author
 *    cmy
 * @description
 *
 */
interface Api {
    @GET("release/news")
    suspend fun getNewsList(
        @Query("channelId") channelId: String?,
        @Query("channelName") channelName: String?,
        @Query("page") page: String?
    ): NetworkResponse<NewsListBean>?


    @GET("release/channel")
    suspend fun getNewsChannelsWithoutEnvelope(
    ): NetworkResponse<NewsChannelsBean>
}